<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户管理</title>
<s:include value="/app_common/common.jsp"></s:include>
</head>
<body>
	<div class="box1" panelWidth="500">
		<form>
			<table class="tableStyle" formMode="view">
				<tr>
					<th colspan="4">详细信息</th>
				</tr>
				<tr>
					<td>用户编码：</td>
					<td>
						<%--<s:if test="#session.u_name eq 'admin'"> --%>
							<input type="text" name="user.u_code" class="validate[required,length[4,20]]" value="<s:property value="user.u_code" />"><span class="star">*</span>
						<%--</s:if>
						<s:else>
							<s:if test="user.u_id==0">
								<input type="text" name="user.u_code" class="validate[required,length[4,20]]" value="<s:property value="user.u_code" />"><span class="star">*</span>
							</s:if>
							 普通员工无法更改CODE 
							<s:else>
								<input type="text" readonly="readonly" name="user.u_code" class="validate[required,length[4,20]]" value="<s:property value="user.u_code" />"><span class="star">*</span>
							</s:else>
						</s:else>--%>
					</td>
					<td>用户级别：</td>
					<td colspan="3">
						<select class="validate[required]" prompt="请选择" name="user.u_power" selectedValue="<s:property value='user.u_power'/>" data='{"list":[{"value":"1","key":"营业部"},{"value":"2","key":"分部"},{"value":"3","key":"普通"}]}'></select><span class="star">*</span>
					</td>
				</tr>
				<tr>
					<td>姓名：</td>
					<td><s:property value="user.u_name" /></td>
					<td>性别：</td>
					<td>
						<s:property value="user.u_sex==0?'男':'女'"/>
					</td>
				</tr>
				<tr>
					<td>账户名：</td>
					<td><s:property value="user.u_login_id" /></td>
					<td>联系方式：</td>
					<td><s:property value="user.u_phone" /></td>
				</tr>
				<tr>
					<td>入职时间：</td>
					<td><s:property value='user.u_entry_date'/></td>
					<td>离职时间：</td>
					<td><s:property value="u_entry_date_end==null||u_entry_date_end==''?'无':u_entry_date_end"/></td>
				</tr>
				<tr>
					<td>出生日期：</td>
					<td><s:property value='user.u_cs_date'/></td>
					<td>身份证号码：</td>
					<td><s:property value="user.u_card" /></td>
					
				</tr>
				<tr>
					<td>用户状态：</td>
					<td>
						<s:property value="u_status==1?'在职':'离职'"/>
					</td>
					<td>学历：</td>
					<td>
						<s:property value="@com.japp.tools.common.SelectVal@userXl(user.u_xl)"/>
					</td>
				</tr>
				<tr>
					<td>所属角色：</td>
					<td>
						<s:property value='user.u_role_name'/>
					</td>
					<td>所属部门：</td>
					<td>
						<s:property value='user.u_ltd==0?"":user.u_ltd_name'/>
					</td>
				</tr>
				<tr>
					<td>用户级别：</td>
					<td colspan="3">
						<s:property value="user.u_power==1?'营业部':user.u_power==2?'分部':'普通'"/>
					</td>
				</tr>
				<tr>
					<td>家庭住址：</td>
					<td colspan="3">
						<s:property value="user.u_address" />
					</td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>